package com.zjhcsoft.auth.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 业务系统信息表
 * </p>
 *
 * @author wzya
 * @since 2021-03-25
 */
@TableName("APP_DETAILS")
public class AppDetails implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 应用唯一标识 应用唯一标识
     */
      @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    /**
     * 应用标识 原系统唯一标识,eg:ORG_SYS_ID
     */
    @TableField("APP_KEY")
    private String appKey;

    /**
     * 应用密钥 原系统密钥
     */
    @TableField("APP_SECRET")
    private String appSecret;

    /**
     * 权限域 权限域
     */
    private String scope;

    /**
     * 资源集 资源
     */
    private String resourceIds;

    /**
     * 回调地址 回调地址
     */
    private String redirectUrl;

    /**
     * 渠道ID 渠道id
     */
    private Long channelId;

    /**
     * 法人id 法人id
     */
    @TableField("CORPORATION_id")
    private Long corporationId;

    /**
     * 默认凭证类型 逗号隔开，如1,2,3
     */
    @TableField("Default_CREDENTIAL_type")
    private String defaultCredentialType;

    /**
     * 创建人
     */
    @TableField("CREATED_BY")
    private String createdBy;

    /**
     * 创建时间
     */
    @TableField("CREATED_TIME")
    private LocalDateTime createdTime;

    /**
     * 更新人
     */
    @TableField("UPDATED_BY")
    private String updatedBy;

    /**
     * 更新时间
     */
    @TableField("UPDATED_TIME")
    private LocalDateTime updatedTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public String getResourceIds() {
        return resourceIds;
    }

    public void setResourceIds(String resourceIds) {
        this.resourceIds = resourceIds;
    }

    public String getRedirectUrl() {
        return redirectUrl;
    }

    public void setRedirectUrl(String redirectUrl) {
        this.redirectUrl = redirectUrl;
    }

    public Long getChannelId() {
        return channelId;
    }

    public void setChannelId(Long channelId) {
        this.channelId = channelId;
    }

    public Long getCorporationId() {
        return corporationId;
    }

    public void setCorporationId(Long corporationId) {
        this.corporationId = corporationId;
    }

    public String getDefaultCredentialType() {
        return defaultCredentialType;
    }

    public void setDefaultCredentialType(String defaultCredentialType) {
        this.defaultCredentialType = defaultCredentialType;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    public LocalDateTime getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(LocalDateTime updatedTime) {
        this.updatedTime = updatedTime;
    }

    @Override
    public String toString() {
        return "AppDetails{" +
        "id=" + id +
        ", appKey=" + appKey +
        ", appSecret=" + appSecret +
        ", scope=" + scope +
        ", resourceIds=" + resourceIds +
        ", redirectUrl=" + redirectUrl +
        ", channelId=" + channelId +
        ", corporationId=" + corporationId +
        ", defaultCredentialType=" + defaultCredentialType +
        ", createdBy=" + createdBy +
        ", createdTime=" + createdTime +
        ", updatedBy=" + updatedBy +
        ", updatedTime=" + updatedTime +
        "}";
    }
}
